<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="jt" uri="http://www.jsoft.org/tags/jsoft"%>
<%@ taglib prefix="jh" uri="http://www.jsoft.org/tags/jsoft-html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	if(path!=null&&path.equals("/")){
	   path="";
	} 
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>自助信息维护</title>
		<link href="<%=basePath%>admin/styles/default.css" rel="stylesheet"
			type="text/css" />
	</head>

	<body>
		<div class="title">
			<h2>
				管理员自助信息维护
			</h2>
		</div>
		<div id="container">
			<h2></h2>
			<!-- table -->
			<form action="<%=basePath%>manager/admin/selfInfo.do" method="post">
			<table cellpadding="4" cellspacing="5" border="0" width="600">
				<tr>
					<td colspan="2"bgcolor="#eaf1f7">
						<b>基本信息：</b>
						<font color="red">${requestScope.infoMsg}</font>
					</td>
				</tr>
				<tr>
					<td width="100" align="right">
						用户名：
					</td>
					<td>
						<c:out value="${sessionScope.sysAdmin.loginName}"/>
					</td>
				</tr>
				<tr>
					<td align="right">
						注册时间：
					</td>
					<td>
						<jt:date date="${sessionScope.sysAdmin.regTime}"/>
					</td>
				</tr>
				<tr>
					<td align="right">
						昵称：
					</td>
					<td>
						<input type="text" name="name" size="30" value="${sessionScope.sysAdmin.name}" class="text">
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="left">
						<input type="submit" value="保 存" class="button" />
					</td>
				</tr>
			</table>
			</form>
			<!-- table -->
			<form action="<%=basePath%>manager/admin/selfPwd.do" method="post">
			<table cellpadding="4" cellspacing="5" border="0" width="600">
				<tr>
					<td colspan="2"bgcolor="#eaf1f7">
						<b>密码修改：</b>
						<font color="red">${requestScope.pwdMsg}</font>
					</td>
				</tr>
				<tr>
					<td width="100" align="right">
						旧密码：
					</td>
					<td>
						<input type="password" name="oldPwd" size="30" value="" class="text">
					</td>
				</tr>
				<tr>
					<td align="right">
						新密码：
					</td>
					<td>
						<input type="password" name="newPwd" size="30" value="" class="text">
					</td>
				</tr>
				<tr>
					<td align="right">
						确认密码：
					</td>
					<td>
						<input type="password" name="newPwdz" size="30" value="" class="text">
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="left">
						<input type="submit" value="保 存" class="button" />
					</td>
				</tr>
			</table>
			</form>
		</div>
	</body>
</html>
